package com.rwsplit.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.rwsplit.dao.TemplateInfoMapper;
import com.rwsplit.entity.Template;
import com.rwsplit.utils.DataSource;

@Component
public class TemplateService {
	
	@Resource
	private TemplateInfoMapper templateInfoMapper;
	
	@DataSource("read")
	public List<Template> getReadAll(){
		return templateInfoMapper.getAll();
	}
	
	@DataSource("write")
	public List<Template> getWriteAll(){
		return templateInfoMapper.getAll();
	}
	
}
